import $http from '../utils/request.js'

// 益榜
export function getIndexOrganizationList(query) {
	return $http.httpRequest({
		url: '/charts/lists',
		data:query
	})
}

// 获取所有组织列表
export function getOrganizationList(query) {
	return $http.httpRequest({
		url: '/organizations/lists',
		data:query
	})
}

// 更新组织信息
export function updateOrganizationData(query) {
	return $http.httpRequest({
		url: '/users/credit/donate',
		methods:'POST',
		headers: 'application/json',
		data:query
	})
}